<include file="__PUBLIC__/_header" />
<script src="__APP_SKIN__js/index_1.js?44"></script>
<body>
<!--头部开始-->
<include file="__PUBLIC__/_nav" />
<!--头部结束-->

<!--主体开始-->
<div class="index_banner">
    <div class="bannerbox" style="overflow: visible" id="index">
        <div class="allShop">
            <div class="all">全部商品分类</div>
            <ul class="hsort">
				<include file="__PUBLIC__/_header_title" />
            </ul>
        </div>

        <div class="indexwrap" id="colume1">
            <div class="box">
                <div class="TabTitle" style="margin-bottom: 0px">
                    <div class="searchInfo-order">当前位置：<a href="javascript:void(0)" >共搜索到 <span class="red">{$data_total}</span> 条记录</a></div>
                </div>
            </div>
        </div>

        <div class="classification" id="colume">
            <if condition="$kind_goods">
            <ol>
                <volist name="kind_goods" id="vo">
                    <li>
                        <h1 class="width">
                            <a href="{:BaseController::_createUrl('index/detail',array('kid'=>$vo['item_no']))}" title="{$vo.m_name}">{$vo.item_name}</a>
                            <p class="descolor" title=""></p>
                        </h1>
                        <div class="left" style="position:relative">
                            <a href="{:BaseController::_createUrl('index/detail',array('kid'=>$vo['item_no']))}">
                                <img src="/data/product/{$vo.item_no}.jpg" onerror="this.src='__APP_SKIN__images/fault.jpg'" original="__APP_SKIN__images/fault.jpg" > 
                            </a>
                        </div>
                        <div class="right">
                            <div class="cr">
                                 <h2>条码: {$vo.item_no} </h2>                               
                                <h2 class="orgren">
                                    <php>
                                        $spec_name = $vo['unit_no'].$vo['item_size'];                                        
                                    </php>
                                    批发价：{$vo|getProductSalePriceByUserType} 元 <br>
                                    零售价：{$vo.sale_price|round=2}元<br>
									<h3>单位：{$vo.unit_no}</h3>
									<h3>整件规格：{$vo.item_size}</h3>
									<h3>配送规格：{$vo.chasedo_spec|round=2} </h3>
									<h3>库存:
									<if condition="$vo['stock_qty'] lt 0 or $vo['stock_qty'] eq 0">
										暂不显示
										<else/>
										暂不显示
									</if>									
									</h3>
									<span style="color:#555">{$vo|getProductRefundTitle}</span>
                                </h2>
                                
                            </div>
                            <div class="number">
                                <input id="text_box" name="" class="buy_{$vo.item_no} onlyint" maxlength="6" type="text" value="{$vo.chasedo_spec|round=2}"<if condition="$vo['chasedo_spec'] neq 1">
												readonly
										</if>	
								>
                                <div class="add" data-chasedo_spec='{$vo.chasedo_spec|round=2}'></div>
                                <div class="min" data-chasedo_spec='{$vo.chasedo_spec|round=2}'></div>
                                <a class="buy hbtnbuy" style="height:30px;line-height:30px;" id="btnBuy_{$vo.item_no}" data-mid="{$vo.item_no}" data-spec="{$vo.chasedo_spec|round=2}" data-price="{$vo|getProductSalePriceByUserType}" >立即订购
                                    <!--<span class="yuan  circular_{$vo.item_no}" id="cartQty_{$vo.item_no}" style="display: ">0</span>-->
								  <if condition="$vo.cart_total_nums gt 0">
                                        <span class="yuan circular_{$vo.item_no}" style="display: block">{$vo.cart_total_nums}</span>
                                        <else/>
                                                 <span class="yuan circular_{$vo.item_no}"  style="display: none">0<span>
                                    </if>
                                </a>
								<a class="buy hcollect" style="height:30px;line-height:30px;margin-top:35px;background:#c6c5C4"  data-mid="{$vo.item_no}" >立即收藏	</a>	
                            </div>
                        </div>
                    </li>
                </volist>
            </ol>
            <div class="page" style=" clear:both; width:100%">

                <!--芙蓉兴盛MVC分页控件-luotao-->
                <div class="pageer">
                    {$pager_html}
                </div>
                <!--芙蓉兴盛MVC分页控件-luotao end-->
            </div>
        <else/>
        <div style="width: 230px; margin: 20px auto">
            <img style="width: 230px;height: 200px;" src="__APP_SKIN__images/fault_none.jpg" alt="">

        </div>

        </if>
        </div>
    </div>

</div>

<!--主体结束-->
<input type="hidden" value="{:BaseController::_createUrl('index/classification')}/kid/" id="classification">
<div class="footer">
    <p>版权所有 Copyright(C)2014  QCYIJIA.COM 贵州黔城壹家贸易有限公司 黔ICP备15001461号 </p>
</div>

<script>
    $(function(){
        var imgName=$("#ad_img").val();
        var hidden_url=$("#classification").val();
//            indexHttpHelper.getAdvertList($(".swiper"),imgName);
//        indexHttpHelper.getFirstKind($(".hsort"),'',hidden_url);
//        indexHttpHelper.getHotGoods($(".ul1"),'',hidden_url);
        ComputedPayHeight();
        $(".hbtnbuy").click(function(){
            var mid=($(this).attr("data-mid"));
			var price=parseFloat($(this).attr("data-price"));
            var total=parseFloat($(this).siblings('.onlyint').val());
            addCart(mid,total,price);

        })
		$(".hcollect").click(function(){
				var mid=$(this).attr("data-mid");
				var total=parseFloat($(this).siblings('.onlyint').val());
				addCollect(mid,total);
			})
			$(".yuan").show();
    })
</script>
</body>
</html>